package com.aioething.iot.beans;

import cn.hutool.json.JSONObject;
import lombok.Data;

@Data
public class ActionRequest {
    private String equipmentId;
    private String method;
    private JSONObject params;

    public String getProductId() {
        return equipmentId.split("/")[0];
    }

    public String getDeviceName() {
        return equipmentId.split("/")[1];
    }
}
